#include <stdio.h>

#define MAXLINE     1024

char *tfgets(char *s, int size, FILE *stream);

int main(int argc, char const* argv[])
{
    char buf[MAXLINE];
    
    if (tfgets(buf, MAXLINE, stdin) == NULL)
        printf("BOOM!\n");
    else    
        printf("%s", buf);

    return 0;
}
